/**
* inforInputController Module
*
* inforInputController
*/
angular.module('app.con.inforInput', []).controller('InforInputController', function($scope, InforInputService) {
	// ngView部分高度自适应
	var window_height = window.innerHeight - document.getElementsByTagName('nav')[0].offsetHeight - document.getElementsByTagName('footer')[0].offsetHeight;
	document.getElementById('ngView').style.height = window_height + 'px';

	// InforInputService.list().success(function(res) {
	// 	$scope.memberlist = res.memberlist;
	// });

	$scope.country = {};
	$scope.countries = [
	    { code: "CN", name: "China", name_cn: "中国大陆" },
	    { code: "HK", name: "Hong Kong", name_cn: "中国香港" },
	    { code: "MO", name: "Macau", name_cn: "中国澳门" },
	    { code: "TW", name: "Taiwan", name_cn: "中国台湾" },
	    { code: "US", name: "United States", name_cn: "美国" },
	    { code: "GB", name: "United Kingdom", name_cn: "英国" },
	    { code: "JP", name: "Japan", name_cn: "日本" },
	    { code: "CA", name: "Canada", name_cn: "加拿大" },
	    { code: "FR", name: "France", name_cn: "法国" },
	    { code: "KR", name: "Korea,Republic of", name_cn: "韩国" },
	    { code: "DE", name: "Germany", name_cn: "德国" },
	    { code: "AL", name: "Albania", name_cn: "阿尔巴尼亚" },
	    { code: "DZ", name: "Algeria", name_cn: "阿尔及利亚" },
	    { code: "AF", name: "Afghanistan", name_cn: "阿富汗" },
	    { code: "AR", name: "Argentina", name_cn: "阿根廷" },
	    { code: "AE", name: "United Arab Emirates", name_cn: "阿联酋" },
	    { code: "AW", name: "Aruba", name_cn: "阿鲁巴" },
	    { code: "OM", name: "Oman", name_cn: "阿曼" },
	    { code: "AZ", name: "Azerbaijan", name_cn: "阿塞拜疆" },
	    { code: "EG", name: "Egypt", name_cn: "埃及" },
	    { code: "ET", name: "Ethiopia", name_cn: "埃塞俄比亚" },
	    { code: "IE", name: "Ireland", name_cn: "爱尔兰" },
	    { code: "EE", name: "Estonia", name_cn: "爱沙尼亚" },
	    { code: "AD", name: "Andorra", name_cn: "安道尔" },
	    { code: "AO", name: "Angola", name_cn: "安哥拉" },
	    { code: "AI", name: "Anguilla", name_cn: "安圭拉" },
	    { code: "AG", name: "Antigua and barbuda", name_cn: "安提瓜和巴布达" },
	    { code: "AT", name: "Austria", name_cn: "奥地利" },
	    { code: "AU", name: "Australia", name_cn: "澳大利亚" },
	    { code: "BB", name: "Barbados", name_cn: "巴巴多斯" },
	    { code: "PG", name: "Papua New Guinea", name_cn: "巴布亚新几内亚" },
	    { code: "BS", name: "Bahamas", name_cn: "巴哈马" },
	    { code: "PK", name: "Pakistan", name_cn: "巴基斯坦" },
	    { code: "PY", name: "Paraguay", name_cn: "巴拉圭" },
	    { code: "PS", name: "Palestine", name_cn: "巴勒斯坦" },
	    { code: "BH", name: "Bahrain", name_cn: "巴林" },
	    { code: "PA", name: "Panama", name_cn: "巴拿马" },
	    { code: "BR", name: "Brazil", name_cn: "巴西" },
	    { code: "BY", name: "Belarus", name_cn: "白俄罗斯" },
	    { code: "BM", name: "Bermuda", name_cn: "百慕大" },
	    { code: "BG", name: "Bulgaria", name_cn: "保加利亚" },
	    { code: "MP", name: "Northern Marianas Islands", name_cn: "北马里亚纳" },
	    { code: "BJ", name: "Benin", name_cn: "贝宁" },
	    { code: "BE", name: "Belgium", name_cn: "比利时" },
	    { code: "IS", name: "Iceland", name_cn: "冰岛" },
	    { code: "PR", name: "Puerto Rico", name_cn: "波多黎各" },
	    { code: "BA", name: "Bosnia and Herzegovina", name_cn: "波黑" },
	    { code: "PL", name: "Poland", name_cn: "波兰" },
	    { code: "BO", name: "Bolivia", name_cn: "玻利维亚" },
	    { code: "BZ", name: "Belize", name_cn: "伯利兹" },
	    { code: "BW", name: "Botswana", name_cn: "博茨瓦纳" },
	    { code: "BT", name: "Bhutan", name_cn: "不丹" },
	    { code: "BF", name: "Burkina Faso", name_cn: "布基纳法索" },
	    { code: "BI", name: "Burundi", name_cn: "布隆迪" },
	    { code: "BV", name: "Bouvet Island", name_cn: "布维岛" },
	    { code: "KP", name: "Korea, Democratic Peoples Republic of", name_cn: "朝鲜" },
	    { code: "GQ", name: "Equatorial Guinea", name_cn: "赤道几内亚" },
	    { code: "DK", name: "Denmark", name_cn: "丹麦" },
	    { code: "TP", name: "East Timor", name_cn: "东帝汶" },
	    { code: "TG", name: "Togo", name_cn: "多哥" },
	    { code: "DO", name: "Dominican Republic", name_cn: "多米尼加" },
	    { code: "DM", name: "Dominica", name_cn: "多米尼克" },
	    { code: "RU", name: "Russia", name_cn: "俄罗斯" },
	    { code: "EC", name: "Ecuador", name_cn: "厄瓜多尔" },
	    { code: "ER", name: "Eritrea", name_cn: "厄立特里亚" },
	    { code: "FO", name: "Faroe Islands", name_cn: "法罗群岛" },
	    { code: "PF", name: "French Polynesia", name_cn: "法属波利尼西亚" },
	    { code: "GF", name: "French Guiana", name_cn: "法属圭亚那" },
	    { code: "TF", name: "French Southern Territories", name_cn: "法属南部领土" },
	    { code: "VA", name: "Vatican", name_cn: "梵蒂冈" },
	    { code: "PH", name: "Philippines", name_cn: "菲律宾" },
	    { code: "FJ", name: "Fiji", name_cn: "斐济" },
	    { code: "FI", name: "Finland", name_cn: "芬兰" },
	    { code: "CV", name: "Cape Verde", name_cn: "佛得角" },
	    { code: "FK", name: "Falkland Islands (Malvinas)", name_cn: "福克兰群岛（马尔维纳斯）" },
	    { code: "GM", name: "Gambia", name_cn: "冈比亚" },
	    { code: "CG", name: "Congo", name_cn: "刚果（布）" },
	    { code: "CD", name: "Congo, the democratic republic of the", name_cn: "刚果（金）" },
	    { code: "CO", name: "Columbia", name_cn: "哥伦比亚" },
	    { code: "CR", name: "Costa Rica", name_cn: "哥斯达黎加" },
	    { code: "GD", name: "Grenada", name_cn: "格林纳达" },
	    { code: "GL", name: "Greenland", name_cn: "格陵兰" },
	    { code: "GE", name: "Georgia", name_cn: "格鲁吉亚" },
	    { code: "CU", name: "Cuba", name_cn: "古巴" },
	    { code: "GP", name: "Guadeloupe", name_cn: "瓜德罗普" },
	    { code: "GU", name: "Guam", name_cn: "关岛" },
	    { code: "GY", name: "Guyana", name_cn: "圭亚那" },
	    { code: "KZ", name: "Kazakstan", name_cn: "哈萨克斯坦" },
	    { code: "HT", name: "Haiti", name_cn: "海地" },
	    { code: "NL", name: "Netherlands", name_cn: "荷兰" },
	    { code: "AN", name: "Netherlands Antilles", name_cn: "荷属安的列斯" },
	    { code: "HM", name: "Heard Islands and McDonald Islands", name_cn: "赫德岛和麦克唐纳岛" },
	    { code: "HN", name: "Honduras", name_cn: "洪都拉斯" },
	    { code: "KI", name: "Kiribati", name_cn: "基里巴斯" },
	    { code: "DJ", name: "Djibouti", name_cn: "吉布提" },
	    { code: "KG", name: "Kyrgyzstan", name_cn: "吉尔吉斯斯坦" },
	    { code: "GN", name: "Guinea", name_cn: "几内亚" },
	    { code: "GW", name: "Guinea-bissau", name_cn: "几内亚比绍" },
	    { code: "GH", name: "Ghana", name_cn: "加纳" },
	    { code: "GA", name: "Gabon", name_cn: "加蓬" },
	    { code: "KH", name: "Cambodia", name_cn: "柬埔寨" },
	    { code: "CZ", name: "Czech Republic", name_cn: "捷克" },
	    { code: "ZW", name: "Zimbabwe", name_cn: "津巴布韦" },
	    { code: "CM", name: "Cameroon", name_cn: "喀麦隆" },
	    { code: "QA", name: "Qatar", name_cn: "卡塔尔" },
	    { code: "KY", name: "Cayman Islands", name_cn: "开曼群岛" },
	    { code: "CC", name: "Coccs(Keeling) Islands", name_cn: "科科斯（基林）群岛" },
	    { code: "KM", name: "Comoros", name_cn: "科摩罗" },
	    { code: "CI", name: "Cote dIvoire", name_cn: "科特迪瓦" },
	    { code: "KW", name: "Kuwait", name_cn: "科威特" },
	    { code: "HR", name: "Croatia", name_cn: "克罗地亚" },
	    { code: "KE", name: "Kenya", name_cn: "肯尼亚" },
	    { code: "CK", name: "Cook Islands", name_cn: "库克群岛" },
	    { code: "LV", name: "Latvia", name_cn: "拉脱维亚" },
	    { code: "LS", name: "Lesotho", name_cn: "莱索托" },
	    { code: "LA", name: "Lao", name_cn: "老挝" },
	    { code: "LB", name: "Lebanon", name_cn: "黎巴嫩" },
	    { code: "LT", name: "Lithuania", name_cn: "立陶宛" },
	    { code: "LR", name: "Liberia", name_cn: "利比里亚" },
	    { code: "LY", name: "Libya", name_cn: "利比亚" },
	    { code: "LI", name: "Liechtenstein", name_cn: "列支敦士登" },
	    { code: "RE", name: "Reunion", name_cn: "留尼汪" },
	    { code: "LU", name: "Luxembourg", name_cn: "卢森堡" },
	    { code: "RW", name: "Rwanda", name_cn: "卢旺达" },
	    { code: "RO", name: "Romania", name_cn: "罗马尼亚" },
	    { code: "MG", name: "Madagascar", name_cn: "马达加斯加" },
	    { code: "MV", name: "Maldives", name_cn: "马尔代夫" },
	    { code: "MT", name: "Malta", name_cn: "马耳他" },
	    { code: "MW", name: "Malawi", name_cn: "马拉维" },
	    { code: "MY", name: "Malaysia", name_cn: "马来西亚" },
	    { code: "ML", name: "Mali", name_cn: "马里" },
	    { code: "MH", name: "Marshall Islands", name_cn: "马绍尔群岛" },
	    { code: "MQ", name: "Martinique", name_cn: "马提尼克" },
	    { code: "YT", name: "Mayotte", name_cn: "马约特" },
	    { code: "MU", name: "Mauritius", name_cn: "毛里求斯" },
	    { code: "MR", name: "Mauritania", name_cn: "毛里塔尼亚" },
	    { code: "UM", name: "United States Minor outlying Islands", name_cn: "美国本土外小岛屿" },
	    { code: "AS", name: "American Samoa", name_cn: "美属萨摩亚" },
	    { code: "VI", name: "Virgin Islands, U.S.", name_cn: "美属维尔京群岛" },
	    { code: "MN", name: "Mongolia", name_cn: "蒙古" },
	    { code: "MS", name: "Montserrat", name_cn: "蒙特塞拉特" },
	    { code: "BD", name: "Bangladesh", name_cn: "孟加拉国" },
	    { code: "PE", name: "Peru", name_cn: "秘鲁" },
	    { code: "FM", name: "Micronesia", name_cn: "密克罗尼西亚" },
	    { code: "MM", name: "Myanmar", name_cn: "缅甸" },
	    { code: "MD", name: "Moldova", name_cn: "摩尔多瓦" },
	    { code: "MA", name: "Morocco", name_cn: "摩洛哥" },
	    { code: "MC", name: "Monaco", name_cn: "摩纳哥" },
	    { code: "MZ", name: "Mozambique", name_cn: "莫桑比克" },
	    { code: "MX", name: "Mexico", name_cn: "墨西哥" },
	    { code: "NA", name: "Namibia", name_cn: "纳米尼亚" },
	    { code: "ZA", name: "South Africa", name_cn: "南非" },
	    { code: "AQ", name: "Antarctica", name_cn: "南极洲" },
	    { code: "GS", name: "South Georgia and the SouthSandwich Islands", name_cn: "南乔治亚岛 和 南桑德韦奇岛" },
	    { code: "YU", name: "Yugoslavia", name_cn: "南斯拉夫" },
	    { code: "NR", name: "Nauru", name_cn: "瑙鲁" },
	    { code: "NP", name: "Nepal", name_cn: "尼泊尔" },
	    { code: "NI", name: "Nicaragua", name_cn: "尼加拉瓜" },
	    { code: "NE", name: "Niger", name_cn: "尼日尔" },
	    { code: "NG", name: "Nigeria", name_cn: "尼日利亚" },
	    { code: "NU", name: "Niue", name_cn: "纽埃" },
	    { code: "NO", name: "Norway", name_cn: "挪威" },
	    { code: "NF", name: "Norfolk Island", name_cn: "诺福克岛" },
	    { code: "PW", name: "Palau", name_cn: "帕劳" },
	    { code: "PN", name: "Pitcairn", name_cn: "皮特凯恩" },
	    { code: "PT", name: "Portugal", name_cn: "葡萄牙" },
	    { code: "MK", name: "Macedonia", name_cn: "前南马其顿" },
	    { code: "SE", name: "Sweden", name_cn: "瑞典" },
	    { code: "CH", name: "Switzerland", name_cn: "瑞士" },
	    { code: "SV", name: "El Salvador", name_cn: "萨尔瓦多" },
	    { code: "WS", name: "Samoa", name_cn: "萨摩亚" },
	    { code: "CS", name: "SERBIA AND MONTENEGRO", name_cn: "塞尔维亚" },
	    { code: "SL", name: "Sierra Leone", name_cn: "塞拉利昂" },
	    { code: "SN", name: "Senegal", name_cn: "塞内加尔" },
	    { code: "CY", name: "Cyprus", name_cn: "塞浦路斯" },
	    { code: "SC", name: "Seychelles", name_cn: "塞舌尔" },
	    { code: "SA", name: "Saudi Arabia", name_cn: "沙特阿拉伯" },
	    { code: "CX", name: "Christmas Island", name_cn: "圣诞岛" },
	    { code: "ST", name: "Sao Tome and Principe", name_cn: "圣多美和普林西比" },
	    { code: "SH", name: "Saint Helena", name_cn: "圣赫勒拿" },
	    { code: "KN", name: "Saint Kitts and Nevis", name_cn: "圣基茨和尼维斯" },
	    { code: "LC", name: "Saint Lucia", name_cn: "圣卢西亚" },
	    { code: "SM", name: "San Marino", name_cn: "圣马力诺" },
	    { code: "PM", name: "Saint Pierre and Miquelon", name_cn: "圣皮埃尔和密克隆" },
	    { code: "VC", name: "Saint Vincent and Grenadines", name_cn: "圣文森特和格林纳丁斯" },
	    { code: "LK", name: "Sri Lanka", name_cn: "斯里兰卡" },
	    { code: "SK", name: "Slovakia", name_cn: "斯洛伐克" },
	    { code: "SI", name: "Slovenia", name_cn: "斯洛文尼亚" },
	    { code: "SJ", name: "Svalbard and Jan Mayen", name_cn: "斯瓦尔巴岛和扬马延岛" },
	    { code: "SZ", name: "Swaziland", name_cn: "斯威士兰" },
	    { code: "SD", name: "Sudan", name_cn: "苏丹" },
	    { code: "SR", name: "Suriname", name_cn: "苏里南" },
	    { code: "SB", name: "Solomon Islands", name_cn: "所罗门群岛" },
	    { code: "SO", name: "Somalia", name_cn: "索马里" },
	    { code: "TJ", name: "Tajikistan", name_cn: "塔吉克斯坦" },
	    { code: "TH", name: "Thailand", name_cn: "泰国" },
	    { code: "TZ", name: "Tanzania", name_cn: "坦桑尼亚" },
	    { code: "TO", name: "Tonga", name_cn: "汤加" },
	    { code: "TC", name: "Turks and Caicos Islands", name_cn: "特克斯和凯科斯群岛" },
	    { code: "TT", name: "Trinidad and Tobago", name_cn: "特立尼达和多巴哥" },
	    { code: "TN", name: "Tunisia", name_cn: "突尼斯" },
	    { code: "TV", name: "Tuvalu", name_cn: "图瓦卢" },
	    { code: "TR", name: "Turkey", name_cn: "土耳其" },
	    { code: "TM", name: "Turkmenstan", name_cn: "土库曼斯坦" },
	    { code: "TK", name: "Tokelau", name_cn: "托克劳" },
	    { code: "WF", name: "Wallis and Futuna", name_cn: "瓦利斯和富图纳" },
	    { code: "VU", name: "Vanuatu", name_cn: "瓦努阿图" },
	    { code: "GT", name: "Guatemala", name_cn: "危地马拉" },
	    { code: "VE", name: "Venezuela", name_cn: "委内瑞拉" },
	    { code: "BN", name: "Brunei", name_cn: "文莱" },
	    { code: "UG", name: "Uganda", name_cn: "乌干达" },
	    { code: "UA", name: "Ukraine", name_cn: "乌克兰" },
	    { code: "UY", name: "Uruguay", name_cn: "乌拉圭" },
	    { code: "UZ", name: "Uzbekistan", name_cn: "乌兹别克斯坦" },
	    { code: "ES", name: "Spain", name_cn: "西班牙" },
	    { code: "EH", name: "Western Sahara", name_cn: "西撒哈拉" },
	    { code: "GR", name: "Greece", name_cn: "希腊" },
	    { code: "SG", name: "Singapore", name_cn: "新加坡" },
	    { code: "NC", name: "New Caledonia", name_cn: "新喀里多尼亚" },
	    { code: "NZ", name: "New Zealand", name_cn: "新西兰" },
	    { code: "HU", name: "Hungary", name_cn: "匈牙利" },
	    { code: "SY", name: "Syria", name_cn: "叙利亚" },
	    { code: "JM", name: "Jamaica", name_cn: "牙买加" },
	    { code: "AM", name: "Armenia", name_cn: "亚美尼亚" },
	    { code: "YE", name: "Yemen", name_cn: "也门" },
	    { code: "IQ", name: "Iraq", name_cn: "伊拉克" },
	    { code: "IR", name: "Iran", name_cn: "伊朗" },
	    { code: "IL", name: "Israel", name_cn: "以色列" },
	    { code: "IT", name: "Italy", name_cn: "意大利" },
	    { code: "IN", name: "India", name_cn: "印度" },
	    { code: "ID", name: "Indonesia", name_cn: "印度尼西亚" },
	    { code: "VG", name: "Virgin Islands, British", name_cn: "英属维尔京群岛" },
	    { code: "IO", name: "British Indian Ocean Territory", name_cn: "英属印度洋领地" },
	    { code: "JO", name: "Jordan", name_cn: "约旦" },
	    { code: "VN", name: "Viet Nam", name_cn: "越南" },
	    { code: "ZM", name: "Zambia", name_cn: "赞比亚" },
	    { code: "TD", name: "Chad", name_cn: "乍得" },
	    { code: "GI", name: "Gibraltar", name_cn: "直布罗陀" },
	    { code: "CL", name: "Chile", name_cn: "智利" },
	    { code: "CF", name: "Central Africa Republic", name_cn: "中非" }
	];
});